package game.entity;

import game.helper.IAbility;

import com.badlogic.gdx.graphics.g2d.SpriteBatch;

public class Army extends AbsSprite  {
	
	
	public Army(Army army){
		super(army);
	}
	public Army(int id , SpriteManager _SpriteManager, String imgPath, int idAnimation, float frameDuration, int num_rows, int num_clus) {
		super(id, _SpriteManager, imgPath,idAnimation,  frameDuration,  num_rows, num_clus);
	}
	
	public Army(int id , SpriteManager _SpriteManager, String imgPath,int idAnimation, float frameDuration, int scrX, int scrY, int frameWidth, int frameHeight, int num_rows, int num_clus) {
		super(id, _SpriteManager, imgPath,idAnimation,  frameDuration,  scrX, scrY, frameWidth, frameHeight, num_rows, num_clus);
	}
	
	public Army(int id , SpriteManager _SpriteManager, String configueFilePath)
	{
		super(id, _SpriteManager, configueFilePath);
	}

	public Army(AbsSprite army)
	{
		super(army);
	}
	
	@Override
	public void render(SpriteBatch spriteBatch) {
		super.render(spriteBatch);
	}

	@Override
	public void renderShape() {
		if(iAbility != null)
			iAbility.actionShape();
		super.renderShape();
	}
	
	@Override
	public void update() {
		
		super.update();
	}
	
	public void setAbility(IAbility _ability)
	{
		this.iAbility  = _ability; 
	}
	
	public void attack(AbsSprite sprite)
	{
		this.iAbility.action(sprite);
	}
}
